import request from "@/utils/request";
/**
 * 废弃处置列表
 * @param {*} data
 * @returns
 */
export function API_garbageList(params) {
  return request({
    url: "/garbage/list",
    method: "get",
    params,
  });
}

/**
 * 废弃处置新增
 * @returns
 */
export function API_garbageCreate(data) {
  return request({
    url: "/garbage/create",
    method: "post",
    data,
  });
}

/**
 * 废弃处置修改
 * @returns
 */
export function API_garbageEdit(data) {
  return request({
    url: `/garbage/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 废弃处置删除
 * @returns
 */
export function API_garbageDelete(data) {
  return request({
    url: `/garbage/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 废弃处置记录
 * @returns
 */
export function API_garbageGet(params) {
  return request({
    url: "/garbage/get",
    method: "get",
    params,
  });
}
